<template>
  <div style="width: 100%; height: 100%">
    <editLifecycle v-if="lifeCycleId" :lifecycleId="lifeCycleId" mode="edit" />
  </div>
</template>
<script setup lang="ts">
  import { useRoute } from "vue-router";
  import { projectOverviewAJAX } from "@/api/project.ts";
  import editLifecycle from "@/views/pm/globalSetting/globalLifecycle/lifecycle/editLifecycle.vue";
  import { ref } from "vue";
  const route = useRoute();

  const lifeCycleId = ref("");
  const getProjectById = async () => {
    const res = await projectOverviewAJAX(route.query.projectId as string);
    console.log(res, "res");
    lifeCycleId.value = res.lifecycleId;
  };
  getProjectById();
</script>

<style scoped lang="scss"></style>
